<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>写邮件</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link rel="stylesheet" type="text/css" href="styles/write.css">
	<link type="text/css" rel="stylesheet" href="styles/jquery.rte.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/jquery.rte.js"></script>
	<script type="text/javascript" src="js/jquery.rte.tb.js"></script>
	<script type="text/javascript" src="js/jquery.ocupload-1.1.4.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			$('.editbox').rte( {
				css : [ 'default.css' ],
				width : 600,
				height : 300,
				controls_rte : rte_toolbar,
				controls_html : html_toolbar
			});
		});
</script>
  </head>
  
  <body>
  	<form action="SendEmail.action" method="post" enctype ="multipart/form-data">
	<table id="main">
		<tr>
			<td class="lable">
				收件人ID：
			</td>
			<td class="content">
				<input class="textbox" type="text" id="receiverid" name="receiverid" value="<s:property value="toId"/>"/>
			</td>
		</tr>
		<tr>
			<td class="lable">
				邮件主题：
			</td>
			<td class="content">
				<input class="textbox" type="text" id="subject" name="subject"/>
			</td>
		</tr>
		<tr>
			<td class="lable">
				邮件正文：
			</td>
			<td class="content">
				<textarea name="mailcontent" id="mailcontent" class="editbox"></textarea>				
				<div id="mailcontent"></div>
			</td>
		</tr>
		<tr>
			<td class="lable">
				选择附件：
			</td>
			<td class="content">
				<input type="file" class="textbox" name="attachment" id="attachment"/>
			</td>
		</tr>
		<tr>
			<td class="lable">
				
			</td>
			<td class="content">
				<input class="btn" type="submit" value="发送邮件"/>
			</td>
		</tr>
		<tr>
			<td class="lable">
				
			</td>
			<td class="content">
				<s:property value="messageTitle" />
			</td>
		</tr>
	</table> 
	</form>   
  </body>
</html>
